﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace GolfLeague.Models
{
    [MetadataType(typeof(Hole_Validation))]
    public partial class Hole
    {
    }

    public class Hole_Validation
    {
        [Required]
        [Display(Name = "Hole Number")]
        [Range(1,18)]
        public Int16 HoleNumber { get; set; }

        [Required]
        [Range(1,18)]
        public Int16 Handicap { get; set; }
    }
}